﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using TrainingCenterSystem;
using TrainingCenterSystem.VocabularyManagement;
using TrainingCenterSystem.UserManagement;

namespace TrainingCenterSystem.TestManagement
{
    public class VocabularyTest:VocabularyTraining
    {
        #region private members
        private List<User> _testPersons;
        private bool _isPublished;
        private DateTime _startTime;
        private DateTime _endTime;
        #endregion

        #region setters and getters
        /// <summary>
        /// Gets or sets the publication stattus of the test.
        /// </summary>
        public bool IsPublished
        {
            get { return _isPublished; }
            set { _isPublished = value; }
        }

        /// <summary>
        /// Gets the persons registered for this test.
        /// </summary>
        public List<User> TestPersons
        {
            get { return _testPersons; }
        }

        #endregion

        #region constructors
        public VocabularyTest()
        {
        }

        public VocabularyTest(string name, string description, byte noOfQuestions, TestLevel level, TestType type,TestDirection testDirection, ArrayList selSources, bool isPublished, DateTime start, DateTime end):base (name,description,noOfQuestions,level,type,selSources,testDirection)
        {
            _isPublished = isPublished;
            _startTime = start;
            _endTime = end;

            //this.setTestLevel(level);
            //this.setTestType(type);  
        }
        #endregion

        #region methods
        #endregion
    }
}
